﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataBase
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User
    {
        /// <summary>
        /// 主键，自动递增
        /// </summary>
        [Key]
        [Column("UserID")]
        public int UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column("UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Column("Password")]
        public string Password { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Column("FullName")]
        public string? FullName { get; set; }

        /// <summary>
        /// 用户邮箱
        /// </summary>
        [Column("Email")]
        public string? Email { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [Column("PhoneNumber")]
        public string? PhoneNumber { get; set; }

        /// <summary>
        /// 是否启用，1表示启用，0表示禁用
        /// </summary>
        [Column("IsEnabled")]
        public int IsEnabled { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("Remark")]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建时间，系统自动填充
        /// </summary>
        [Column("CreatedTime")]
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("ModifiedTime")]
        public DateTime? ModifiedTime { get; set; }

    }
}
